/**
 * @filename:VoteConfigInfoServiceImpl VoteConfigInfo
 * @project constract  V1.0
 * Copyright(c) 2018 bot Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.vote.VoteConfigInfo;
import com.znufe.exam.repository.VoteConfigInfoMapper;
import com.znufe.exam.service.VoteConfigInfoService;

/**   
 *  
 * @Description:  答题器基站信息表——SERVICEIMPL
 * @Author:       bot   
 * @CreateDate:   VoteConfigInfo
 * @Version:      V1.0
 *    
 */
@Service
public class VoteConfigInfoServiceImpl implements VoteConfigInfoService {
	
	@Autowired
	public VoteConfigInfoMapper voteConfigInfoDao;

	@Override
	public VoteConfigInfo selectLastVoteConfigInfo() {
		return voteConfigInfoDao.selectLastVoteConfigInfo();
	}

	//查询对象
	@Override
	public VoteConfigInfo selectByPrimaryKey(Integer id) {
		return voteConfigInfoDao.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return voteConfigInfoDao.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(VoteConfigInfo voteConfigInfo) {
		return voteConfigInfoDao.insertSelective(voteConfigInfo);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(VoteConfigInfo voteConfigInfo) {
		return voteConfigInfoDao.updateByPrimaryKeySelective(voteConfigInfo);
	}
	
	//查询集合
	@Override
	public List<VoteConfigInfo> queryVoteConfigInfoList(VoteConfigInfo voteConfigInfo) {
		return voteConfigInfoDao.queryVoteConfigInfoList(voteConfigInfo);
	}
	

}